package model;

import java.io.Serializable;

public class User implements Serializable {
	private static final long serialVersionUID = 8850451213392027209L;
	public static int MIN_USERNAME_LEN = 8;
	public static int MIN_PASSWORD_LEN = 8;
	private int id;

	private String username;
	private String password;

	public User(int id, String username, String password) {
		this.id = id;
		this.username = username;
		this.password = password;
	}

	public String toString() {
		return String.format("[%d] %s", id, username);
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public int getId() {
		return id;
	}

}
